
package com.shop.cloud.mall.admin.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.shop.cloud.common.core.constant.CacheConstants;
import com.shop.cloud.mall.common.entity.BalanceConfig;
import com.shop.cloud.mall.admin.mapper.BalanceConfigMapper;
import com.shop.cloud.mall.admin.service.BalanceConfigService;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.stereotype.Service;
import java.io.Serializable;

/**
 * 余额功能配置
 *
 * @author
 * @date 2023-11-01 10:37:44
 */
@Service
public class BalanceConfigServiceImpl extends ServiceImpl<BalanceConfigMapper, BalanceConfig> implements BalanceConfigService {

    @Override
    @CacheEvict(value = CacheConstants.MALL_BALANCE_CONFIG_CACHE, key = "'value'")
    public boolean updateById(BalanceConfig entity) {
        return super.updateById(entity);
    }

    @Override
    @CacheEvict(value = CacheConstants.MALL_BALANCE_CONFIG_CACHE, key = "'value'")
    public boolean removeById(Serializable id) {
        return super.removeById(id);
    }

    @Override
    @CacheEvict(value = CacheConstants.MALL_BALANCE_CONFIG_CACHE, key = "'value'")
    public boolean save(BalanceConfig entity) {
        return super.save(entity);
    }
}
